package com.glut.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 试题表
 * @Author:沈林玉
 * @date:2020/2/2 21:54
 * @Description:
 */
public class SdfsQuestions implements Serializable {

    private String sdfsQuestionID;  // 题目ID：100011单选题的第十一道题
    private String question;    // 题干
    private Integer questionType; // 题型：1.单选2.判断3.填空4.简答5.综合
    private Double difficulty;  // 难度(0.25,0.5,0.75)
    private String secKld;  // 涉及知识点(1,2,3)
    private SQuestionDetail sQuestionDetail;
    private FQuestionDetail fQuestionDetail;
    private DQuestionDetail dQuestionDetail;
    private ShQuestionDetail shQuestionDetail;

    private String newID;
    private Integer qID;

    public SdfsQuestions() {
    }

    public SdfsQuestions(String sdfsQuestionID, String question,
                         Integer questionType, Double difficulty, String secKld) {
        this.sdfsQuestionID = sdfsQuestionID;
        this.question = question;
        this.questionType = questionType;
        this.difficulty = difficulty;
        this.secKld = secKld;
    }

    public String getSdfsQuestionID() {
        return sdfsQuestionID;
    }

    public void setSdfsQuestionID(String sdfsQuestionID) {
        this.sdfsQuestionID = sdfsQuestionID;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public Integer getQuestionType() {
        return questionType;
    }

    public void setQuestionType(Integer questionType) {
        this.questionType = questionType;
    }

    public Double getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(Double difficulty) {
        this.difficulty = difficulty;
    }

    public String getSecKld() {
        return secKld;
    }

    public void setSecKld(String secKld) {
        this.secKld = secKld;
    }

    public String getNewID() {
        return ((getQuestionType().toString())+this.qID);
    }

    public Integer getqID() {
        return qID;
    }

    public void setqID(Integer qID) {
        this.qID = qID;
    }

    public SQuestionDetail getsQuestionDetail() {
        return sQuestionDetail;
    }

    public void setsQuestionDetail(SQuestionDetail sQuestionDetail) {
        this.sQuestionDetail = sQuestionDetail;
    }

    public FQuestionDetail getfQuestionDetail() {
        return fQuestionDetail;
    }

    public void setfQuestionDetail(FQuestionDetail fQuestionDetail) {
        this.fQuestionDetail = fQuestionDetail;
    }

    public DQuestionDetail getdQuestionDetail() {
        return dQuestionDetail;
    }

    public void setdQuestionDetail(DQuestionDetail dQuestionDetail) {
        this.dQuestionDetail = dQuestionDetail;
    }

    public ShQuestionDetail getShQuestionDetail() {
        return shQuestionDetail;
    }

    public void setShQuestionDetail(ShQuestionDetail shQuestionDetail) {
        this.shQuestionDetail = shQuestionDetail;
    }

    @Override
    public String toString() {
        return "SdfsQuestions{" +
                "sdfsQuestionID='" + sdfsQuestionID + '\'' +
                ", question='" + question + '\'' +
                ", questionType=" + questionType +
                ", difficulty=" + difficulty +
                ", secKld='" + secKld + '\'' +
                '}';
    }
}
